package edu.pku.sei.mte.mtemodel.mtmodel.common;

import edu.pku.sei.mte.mtemodel.core.NamedElement;
import edu.pku.sei.mte.utilities.Visitor;

public class ModelVariable extends Variable {
	private NamedElement patternElement;

	public NamedElement getPatternElement() {
		return patternElement;
	}

	public void setPatternElement(NamedElement node) {
		this.patternElement = node;
	}
	@Override
	public ModelVariable getCopy(){
		ModelVariable v = new ModelVariable();
		v.copy(this);
		v.patternElement = patternElement;
		return v;
	}
	
	@Override
	public Object accept(Visitor visitor) {
		return visitor.visitModelVariable(this);
	}
}
